package com.easylinkin.linkappapi.lobar.dto.screen;

import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * @Author: kan yuanfeng
 * @Date: 2022/4/27 15:06
 * @Description: 劳务管理大屏统计实体
 */
@Data
public class LobarScreenDTO {

  public LobarScreenDTO() {

  }
  public LobarScreenDTO(String name, int num) {
    this.name = name;
    this.num = num;
  }

  public LobarScreenDTO(String name, List<String> userIds) {
    this.name = name;
    this.userIds = userIds;
    this.num = userIds.size();
  }

  public LobarScreenDTO(String name, int num, String abbreviation) {
    this.name = name;
    this.num = num;
    this.abbreviation = abbreviation;
  }

  public LobarScreenDTO(String name, List<String> userIds, String abbreviation) {
    this.name = name;
    this.userIds = userIds;
    this.num = userIds.size();
    this.abbreviation = abbreviation;
  }

  private String id;

  /**
   * 统计时间
   */
  private Date cTime;

  /**
   * 名称
   */
  private String name;

  /**
   * 单位简称
   */
  private String abbreviation;

  /**
   * 数量
   */
  private int num;

  /**
   * 占比
   */
  private String part;

  /**
   * 昨日出勤率
   */
  private String yesterday = "0%";

  /**
   * 7日出勤率
   */
  private String sevenDay = "0%";

  /**
   * 本月出勤率
   */
  private String mouth = "0%";

  /**
   * 总出勤率
   */
  private String sum = "0%";

  /**
   * 考勤时长
   */
  private Double hours;

  /**
   * 在场
   */
  private int in;

  /**
   * 在场用户id集合
   */
  private List<String> inUserIds;

  /**
   * 全部用户id集合
   */
  private List<String> userIds;

  /**
   * 全部用户id 逗号分隔的字符串
   */
  private String userIdsStr;
}
